* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px 15px;
        border-radius: 8px;
    }
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
}

h2 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 1.5rem;
}

h3 {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1.2rem;
}

.payment-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.btn:hover {
    background-color: #4338ca;
}

.secondary-btn {
    background-color: #64748b;
}

.secondary-btn:hover {
    background-color: #475569;
}

.hidden {
    display: none;
}

#payment-element {
    margin-bottom: 20px;
}

#payment-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
}

.success-message {
    background-color: #dcfce7;
    color: #15803d;
}

.logs {
    margin-top: 40px;
    padding: 15px;
    background-color: #f1f5f9;
    border-radius: 6px;
}

.logs h3 {
    margin-bottom: 10px;
    color: #475569;
}

#payment-logs {
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
}

/* 订单信息样式 */
.order-details {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #4f46e5;
}

.info-row {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.info-row .label {
    font-weight: 600;
    color: #64748b;
    min-width: 80px;
    margin-right: 10px;
}

.info-row .value {
    color: #334155;
    font-weight: 500;
    flex-grow: 1;
}

@media (max-width: 480px) {
    .info-row {
        flex-direction: column;
    }

    .info-row .label {
        margin-bottom: 4px;
    }
}